/**
 * Created by hps on 17-4-30.
 */
public class FirstLastApp {
    public static void main(String[] args) {
        FirstLastList theList = new FirstLastList();

        theList.insertFirst(new Link1(22));
        theList.insertFirst(new Link1(44));
        theList.insertFirst(new Link1(66));

        theList.insertLast(new Link1(11));
        theList.insertLast(new Link1(33));
        theList.insertLast(new Link1(55));

        theList.displayList();

        theList.deleteFirst();
        theList.deleteFirst();

        theList.displayList();
    }
}
